home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / src / s / aix3-1.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-18  |  4.1 KB  |  153 lines

  1. /* Definitions file for GNU Emacs running on IBM AIX version 3.1
  2.    Copyright (C) 1985, 1986, 1990 Free Software Foundation, Inc.
  3.  
  4. This file is part of GNU Emacs.
  5.  
  6. GNU Emacs is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. GNU Emacs is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with GNU Emacs; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  19.  
  20. /* Synched up with: FSF 19.29. */
  21.  
  22. /*
  23.  *    Define symbols to identify the version of Unix this is.
  24.  *    Define all the symbols that apply correctly.
  25.  */
  26.  
  27. #define USG                /* System III, System V, etc */
  28. #define USG5
  29.  
  30. /*      Specify IBM AIX version of system */
  31.  
  32. #ifndef AIX
  33. #define AIX
  34. #endif
  35.  
  36. /*      turn off c prototypes */
  37. /* XEmacs change: XEmacs compiles fine with prototypes under AIX, dkeller@vnet.ibm.com
  38. #ifndef _NO_PROTO
  39. #define _NO_PROTO
  40. #endif
  41. */
  42.  
  43. /*      This symbol should be defined on AIX Version 3  ??????? */
  44. #ifndef _AIX
  45. #define _AIX
  46. #endif
  47.  
  48. /*      Specify "_BSD" to invoke Berkeley compatibility in header files */
  49. /*#ifndef _BSD
  50. #define _BSD
  51. #endif
  52. */
  53.  
  54. /* SYSTEM_TYPE should indicate the kind of system you are using.
  55.  It sets the Lisp variable system-type.  */
  56.  
  57. #define SYSTEM_TYPE "aix-v3"
  58.  
  59. /* In AIX, you allocate a pty by opening /dev/ptc to get the master side.
  60.    To get the name of the slave side, you just ttyname() the master side.  */
  61.  
  62. #define PTY_ITERATION for (c = 0; !c ; c++)
  63. #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
  64. #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
  65.  
  66. /* XEmacs change: #### is this crap necessary? */
  67. #ifndef NOT_C_CODE
  68. #include <termios.h>
  69. #endif
  70.  
  71. /*
  72.  *    Define HAVE_PTYS if the system supports pty devices.
  73.  */
  74.  
  75. #define HAVE_PTYS
  76.  
  77. /* If your system uses COFF (Common Object File Format) then define the
  78.    preprocessor symbol "COFF". */
  79.  
  80. /* #define COFF */
  81.  
  82. /* define MAIL_USE_FLOCK if the mailer uses flock
  83.    to interlock access to /usr/spool/mail/$USER.
  84.    The alternative is that a lock file named
  85.    /usr/spool/mail/$USER.lock.  */
  86.  
  87. /* #define MAIL_USE_FLOCK */
  88.  
  89. /* Define SHORTNAMES if the C compiler can distinguish only
  90.    short names.  It means that the stuff in ../shortnames
  91.    must be run to convert the long names to short ones.  */
  92.  
  93. /* #define SHORTNAMES */
  94.  
  95. /* The file containing the kernel's symbol table is called /unix.  */
  96.  
  97. #define KERNEL_FILE "/unix"
  98.  
  99. /* The symbol in the kernel where the load average is found
  100.    is named avenrun.  */
  101.  
  102. #define LDAV_SYMBOL "avenrun"
  103.  
  104. /* Special itemss needed to make Emacs run on this system.  */
  105.  
  106. /* On USG systems the system calls are interruptible by signals
  107.  that the user program has elected to catch.  Thus the system call
  108.  must be retried in these cases.  To handle this without massive
  109.  changes in the source code, we remap the standard system call names
  110.  to names for our own functions in sysdep.c that do the system call
  111.  with retries. */
  112.  
  113. #define INTERRUPTIBLE_OPEN
  114. #define INTERRUPTIBLE_IO
  115.  
  116. /* USG systems tend to put everything declared static
  117.    into the initialized data area, which becomes pure after dumping Emacs.
  118.    Foil this.  Emacs carefully avoids static vars inside functions.  */
  119.  
  120. #undef static
  121.  
  122. /* Compiler bug bites on many systems when default ADDR_CORRECT is used.  */
  123.  
  124. /* #define ADDR_CORRECT(x) (x) */
  125.  
  126. #ifndef __GNUC__
  127. #define LINKER cc
  128. #endif
  129.  
  130. /* Prevent -lg from being used for debugging.  Not needed.  */
  131.  
  132. #define LIBS_DEBUG
  133.  
  134. /* No need to specify -lc when linking.  */
  135.  
  136. #define LIB_STANDARD
  137.  
  138. /* Use terminfo instead of termcap.  */
  139.  
  140. #define TERMINFO
  141.  
  142. /* The following definition seems to be needed in AIX version 3.1.6.8.
  143.    It may not have been needed in certain earlier versions.  */
  144. #define HAVE_TCATTR
  145.  
  146. #define SYSTEM_MALLOC
  147.  
  148. /* AIX doesn't define this.  */
  149. #define unix 1
  150.  
  151. /* AIX 3.1 has the HFT features.  */
  152. #define AIXHFT
  153.